import http from '@/utils/request'

export const login = (params) => http.post('/auth/login/workLogin', params)
// 修改密码

export const changePwd = (params) => http.post('/auth/bossBaseUser/updateUserPwdModify', params)
// 查询用户资料
export const userInfo = (params) => http.get('/auth/bossBaseUser/load', params)
// 修改用户资料
export const updateUserInfo = (params) => http.post('/auth/bossBaseUser/update', params)
// 上传
export const upload = (params) => http.upload('/auth/upload/uploadFile', params, {
  showLoading: false
})

// 获取登录权限
export const getUserRules = (params) => http.post('/auth/adTenantCheck/selectPermissionList', params)

// 我的申请列表
export const ApplyMineList = (params) => http.post('/auth/bossEntryRequest/mineList', params)
// 邀请信息查询（个人信息）
export const inviteMineList = (params) => http.post('/auth/bossInvitation/mineList', params)
// 邀请信息通过驳回
export const inviteMineResolve = (params) => http.post('/auth/bossInvitation/auditOperation', params)

// 登录获取基础企业信息 auth/bossTenant/tenantInfo
export const tenantInfo = (params) => http.get('/auth/bossTenant/tenantInfo', params)
